<?php
class TaskflowModel extends Model
{//任务反馈管理模块
	//id  tid  postdate  submitter  action  remark
	protected $_validate = array( 
        array('action','require','任务名称必须！',1),
        array('remark','require','任务说明必须！',1),
        );
    
	protected $autoCreateTimestamps = array('postdate');

    protected $_auto = array(
        //array('postdate','time','ADD','function'),
        array('submitter','get_submintterid','ADD','function'),
        //array('planstart','make_timestamp','ALL','function'),
	);
/*
	protected $viewModel = true;
	 
	// 视图模型中的字段定义 
	protected $viewFields = array( 
		"Model1"=>array("field1","field2","field3"), 
		"Model2"=>array("field1","field2") 
	); 

	// 视图关联的where条件 
	protected $viewCondition = array("Model1.field1" => array("eqf","Model2.field1")); 
	 
	// 视图模型的主键
	Public function getPk() { 
		return "Model1.field1"; 
	}

	var $_auto = array( 
		//array("datetime","time","ADD")
	); 

	var $_validate = array( 
		//array("title","require","标题不能为空",1) 
	); 

	var $_link = array( 
	array( "mapping_type"=>HAS_ONE, 
			"class_name"=>"", 
			"foreign_key"=>"", 
			"mapping_name"=>"", 
		 ) 
	);*/
} 
?>